package cn.fzhui.service;

import cn.fzhui.dao.AdminDao;
import cn.fzhui.factory.DaoFactory;
import cn.fzhui.model.Admin;

import java.sql.SQLException;

public class LoginService {


    /**
     * 登陆
     *
     * @return
     */
    public boolean login(Admin admin) throws SQLException {

        if (DaoFactory.getAdminDao().find(admin) != null) {
            return true;
        }

        return false;
    }

}
